package bancosys.tec.utils.date;

import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;

/**
 * @author joao.enomoto
 */
public class WallClockMustTell {
    
    private WallClock oneClock;
    
    @Before
    public void setUpClock() {
        this.oneClock = new WallClock();
    }
    
    @Test
    public void currentDate() {
        assertEquals(new Date(), this.oneClock.currentDate());
    }
    
    @Test
    public void currentTime() {
        assertEquals(new Time(), this.oneClock.currentTime());
    }
    
    @Test
    public void currentTimestamp() {
        assertEquals(new Timestamp(), this.oneClock.currentTimestamp());
    }
}
